package com.hjh.thread.condition;

/*
1、Conditon创建方式

    Lock lock = new ReentrantLock();
    Condition producerCondition = lock.newCondition();
    Condition consumerCondition = lock.newCondition();


2、Conditon等待和通知方式
   producerCondition.await();
   consumerCondition.signalAll();或者consumerCondition.signal()


3、Conditon等待一般是while(条件)等待；
4、












 */